﻿@model IEnumerable<Citi.ReportManager.WebUi.Models.HighlightedReportModel>
@{
    ViewBag.Title = "My Reports";
}
<h2>
    My Reports</h2>
<table class="table table-bordered table-striped">
    <tr>
        <th>
            Category
        </th>
        <th>
            Report
        </th>
        <th>
            Download Date
        </th>
        <th>
            Size
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                <img src="@Url.Content("~/Content/Images/Files/folder.png")" alt="File type" style="width: 24px"/>
                @Html.ActionLink(item.Category.Name, "Index", "Report", new { categoryId = item.CategoryId, folder = item.ReportPath }, null)
            </td>
            <td>
                <img src="@Url.Content(string.Format("~/Content/Images/Files/{0}", item.Icon))" alt="File type" style="width: 20px"/>
                &nbsp;
                @Html.ActionLink(item.ReportName, "Download", "Report", new { categoryId = item.CategoryId, folder = item.ReportPath }, null)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RequestDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Size) MB
            </td>
        </tr>
    }
</table>
